#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_

/*figure's points*/
struct Point{
	int x, y;
};

/*figure*/
struct Figure{
	int x, y, size, style, num;
	struct Point* p;
};

/* menu's word max length*/
#define MenuWordLen 15

/*field size*/
#define FieldHeight 18
#define FieldLength 13

/*for top scores*/
#define TopScoreNum 10
#define TopNameLength 20

/*for scroll screen*/
#define ScrollX 40
#define ScrollY 10

/*colors*/
#define MenuColor          1
#define MenuChColor        2
#define FieldColor         3
#define FieldScreenColor   4
#define FigureColor1       5
#define FigureColor2       6
#define FigureColor3       7
#define FigureColor4       8
#define FigureColor5       9
#define SecondWindowColor  10
#define ScoreColor         11
#define TimeColor          12

/*figure element*/
#define FigureElem ' '

/*Error strings*/
#define LoadFailString "ERROR LOADING FILE"
#define SaveFailString "ERROR SAVING FILE"
#define SumFailString  "FILE IS CORRUPT \n\r     PLEASE RE-INSTALL APPLICATION, RESAVE OR STOP CHEATING ;)"

/*credit string*/
#define CreditsString  "Program made by Anatoliy Dudanovskiy\n\r                              August 2008"

/*files*/
#define SaveFileName   "save.bin"
#define TopFileName    "top.bin"
#define RulesFileName  "GameRules.txt"

/*results*/
#define NewGame  -1
#define LoadGame -2
#define NetGame  -3
#define ExitGame -4
#define LostGame -5
#define LoadFail -6
#define SaveFail -7
#define SumFail  -8
#define NetFail  -9

/*network choices*/
#define NetFigure 1
#define NetField  2
#define NetLost   3
#define NetExit   4
#define NetEnd    5

#endif /*DEFINITIONS_H_*/
